package com.songpeng.provider.demo.service;


import api.baseplatform.model.UserInfo;
import api.baseplatform.service.UserService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Value;

@DubboService
public class DemoServiceImpl implements UserService {

    @Value("${server.port}")
    private String port;

    @Override
    public UserInfo getUser(String code, String pass) {

        UserInfo userInfo = new UserInfo();
        userInfo.setUserCode( code );
        userInfo.setUserName( port );
        userInfo.setUserPass( pass );

        return userInfo;
    }
}
